function compare(object1x, object1y, object1wid, object1hig, object2x, object2y, object2wid, object2hig)

			if 	object1x + object1wid > object2x and 
				object1x < object2x + object2wid and 
				object1y + object1hig > object2y and 
				object1y < object2y + object2hig
			then return true
			end
end

